package lab02.test12;

public class Rectangular extends Shape {

    //宽高
    float width;
    float height;
    @Override
    public double area() {
        return width * height;
    }

    @Override
    public double perimeter() {
        return 2 * height + 2 * width;
    }
}
